package com.tcxhb.job.dao.repository;

import com.tcxhb.job.dao.dataobject.JobMachineDO;
import com.tcxhb.job.dao.dataobject.query.JobMachineQuery;
import com.tcxhb.job.common.model.PageResponse;

import java.util.List;
/**
* author:auto.generator
* time: 2023-11-05
*/
public interface JobMachineRepository {

    /**
    * 创建对象
    * @param jobMachineDO
    * @return
    */
    Long create(JobMachineDO jobMachineDO);

    /**
    * 根据ID删除
    * @param id
    * @return
    */
    boolean deleteById(Long id);

    /**
    * 根据ID更新
    * @param jobMachineDO
    * @return
    */
    boolean updateById(JobMachineDO jobMachineDO);

    /**
    * 根据ID查询
    * @param id
    * @return
    */
    JobMachineDO queryById(Long id);

    /**
    * 分页查询
    * @param query
    * @return
    */
    PageResponse<JobMachineDO> page(JobMachineQuery query);

    /**
    * 列表查询
    * @param query
    * @return
    */
    List<JobMachineDO> list(JobMachineQuery query);

    /**
     * 更新
     * @param jobMachineDO
     * @return
     */
    boolean updateByHost(JobMachineDO jobMachineDO);
}
